package view.render
{
	import mx.core.IDataRenderer;
	import mx.core.IFactory;
	
	import spark.components.Label;
	
	public class ItemLabel extends Label implements IFactory, IDataRenderer
	{
		public function ItemLabel()
		{
			super();
		}
		
		public function newInstance():*
		{
			return new ItemLabel();
		}
		
		public function get data():Object
		{
			return _data;
		}
		
		public function set data(value:Object):void
		{
			_data=value;
			this.text=value.label;
			this.color=value.color;
//			this.ba
		}
		
		//private
		private var _data:Object;
//		private var newInstance;
	}
}